package sanshi.contect.command;

public class DeleteCommand extends Command{

    Content content;
    String deleteStr;
    @Override
    public Command doit() {
        deleteStr = content.msg.substring(0, 5);
        content.msg = content.msg.substring(0, deleteStr.length());
        return this;
    }

    @Override
    public Command undo() {
        content.msg = content.msg + deleteStr;
        return this;
    }
}
